package face.pay.dao;

import face.pay.entity.DeviceApplyDetail;
import face.pay.entity.DeviceApplyInfo;
import face.pay.entity.DeviceOrderInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Classname DeviceApplyDetailsDao
 * @Description JJL
 * @Date 2019/11/15 15:33
 */
@Mapper
public interface DeviceApplyDetailDao {

    void insert(@Param("DeviceApplyInfos") List<DeviceApplyInfo> deviceApplyInfos, @Param("applyId") Integer applyId, @Param("createdBy")Integer createdBy);

    List<DeviceOrderInfo> queryOrdersByApplyId(Integer deviceApplyId);

    List<DeviceOrderInfo> getUserApplyDetailInfo(Integer applyId);
}
